﻿using System;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using WeForms.Tester.Views;
using WeForms.View;

namespace WeForms.Tester
{
    public partial class MainForm : WeTabForm
    {
        public MainForm()
        {
            InitializeComponent();

            Console.WriteLine("Registering Views");
            weTabContainer1.RegisterView("Button", new ButtonView());
            weTabContainer1.RegisterView("Radio", new RadioView());
            weTabContainer1.RegisterView("Scrolling", new ScrollView());
            weTabContainer1.RegisterView("Info", new InfoView());

            weTabContainer1.DisplayView("Button");
        }

        private void weTabContainer1_ViewChanged(object sender, System.EventArgs e)
        {
            Text = string.Format("{0} - {1}", ProductName, weTabContainer1.CurrentViewId);
        }

    }
}
